home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Plug-In Power Pack for Netscape Communicator
/
Plug-In Power Pack for Netscape Communicator.iso
/
plugins
/
dataviews
/
dvtools
/
demos
/
mfgdemo
/
mfg_vars.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-06-16
|
3KB
|
90 lines
/*------------------------------------------------------------------
| file name -- mfg_vars.h
|-----------------------------------------------------------------*/
/* REFERENCE the global variables for the main DISPLAY */
extern long updating; /* prevent timer from updating screen too often */
extern DRAWPORT
ActiveDrawport,
PidDrawport,
DrawportId[];
extern OBJECT DVscreen;
extern DV_BOOL QuitStatus;
extern CHAR
*ViewName[], /* Main Display view file names */
*PidName[]; /* Pid Display view file names */
/* REFERENCE the symbol tables need to manage information */
extern SYMTABLE
DpTable, /* table for DRAWPORT management */
DataTable;
/* Define a structure that will keep track of LIST OF DISPLAYS */
typedef struct DISPLAY_LIST
{
DRAWPORT drawport;
struct DISPLAY_LIST *prev;
} DISPLAY_LIST;
extern DISPLAY_LIST *DisplayList;
/* Define a structure for organizing REAL-TIME DATA. This structure
| is used to create a symbol table of variable names and data info.
| We check the name of the vdp (created in DV-Draw) against the table.
| We then REBIND the vdp's buffer to the buffer in the table.
*/
typedef struct DATA_INFO {
CHAR *varname;
ADDRESS bufptr;
} DATA_INFO;
extern DATA_INFO DataInfo[];
/* CONSTANTS */
#define TOP_VIEW 0
#define STAMPING_VIEW 1
#define STAMPER1_VIEW 2
#define STAMPER2_VIEW 3
#define STAMPER3_VIEW 4
#define ASSEMBLY_VIEW 5
#define WELDING1_VIEW 6
#define WELDING2_VIEW 7
#define PAINT_SHOP_VIEW 8
#define WAIT_VIEW "intro.v"
#define NUM_DISPLAYS 9
#define NUM_PIDS 1
/* Hot Spot Names */
#define QUIT_COMMAND 'Q'
#define GOTO_COMMAND 'G'
#define PREVIOUS_COMMAND 'P'
#define LOWER_STAMPER_COMMAND 'L'
#define RAISE_STAMPER_COMMAND 'R'
#define ACKNOWLEDGE_COMMAND 'A'
#define INC_OVEN_COMMAND 'I'
#define DEC_OVEN_COMMAND 'D'
#define OVERLAY_PID_COMMAND 'O'
#define ERASE_PID_COMMAND 'E'
/* Display Manager flags */
#define RESET_DISPLAY 0
#define NEXT_DISPLAY 1
#define PREV_DISPLAY 2
/* MISC MACROS */
#define STRINGS_ARE_EQUAL( str1, str2 ) strcmp( str1, str2 ) == 0
/* ERROR MESSAGE MACROs */
#define EXIT_IF_INVALID( a, string ) if( !a ) \
{ (VOID)printf(string); exit(EXIT_ERR);}
#define RETURN_IF_INVALID( a, string ) if( !a ) \
{ (VOID)printf(string); return;}
#define NO_DEVICE "DataViews environment variable DVDEVICE must be defined.\n"
#define NO_TOP_VIEW "Top View can't be loaded.\n"
#define NO_MENU_VIEW "Menu View can't be loaded.\n"
#define UNKOWN_DRAWPORT "No view for specified object name.\n"